setTimeout(() => {
  const ads1 = document.querySelector('.layout-Slide-bannerInner')
  if (ads1) ads1.remove()
  const ads2 = document.querySelector('.layout-Banner')
  if (ads2) ads2.remove()
  console.log('广告已全部清除')
}, 2000);

let times = 0
let id = setInterval(() => {
  if (times > 6) {
    clearInterval(id)
    console.log('重新变动页面布局')
  }
  times++
  // window.scrollTo({top:0})
  // removeDom('#js-header')
  removeDom('.GlobalAct')
  removeDom('.Bottom-guessGame-placeholder')
  removeDom('#js-player-guessgame')
  removeDom('.Bottom-ad')
  removeDom('.layout-Player-rank')
  removeDom('.SignBarrage')
  removeDom('.Title-col.is-right.h34')
  removeDom('.wm-general-wrapper.bc-wrapper.bc-wrapper-2')
  removeDom('#bc2-bgblur')
  removeDom('#js-room-activity')
  try {
    document.querySelector('#js-header+div.wm-general').style.height='32px'
  } catch (error) {}
  const aaa = document.querySelector('#js-player-toolbar')
  const bbb = document.querySelector('.layout-Player-chat')
  try {
    bbb.style.height='96px'
    bbb.firstChild.style.padding=0
    bbb.firstChild.firstChild.style.height='30px'
  } catch (error) {}
  if (aaa && bbb) {
    const chatInput = document.querySelector('.ChatSend')
    // chatInput
    if (chatInput) {
      chatInput.style.display = 'flex'
      chatInput.childNodes[0].style.flex = 1
      document.querySelector('.layout-Player-asideMainTop').style.bottom = 0
      try {
        document.querySelector('.FishShopTip').remove()
      } catch (error) {}
    }
    aaa.replaceChild(bbb, aaa.childNodes[0]);
  }
  // setStyle('#js-aside', styl => styl.top = 0)
  setStyle('#js-player-barrage', styl => styl.top = '38px')
  // setStyle('.layout-Container', styl => styl.paddingTop = 0)
}, 1000);